/* 页面容器 */
.xss-web1-container {
  min-height: 100vh;
  background-color: #111827;
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.xss-web1-header {
  background-color: #1f2937;
  border-bottom: 1px solid #374151;
  padding: 1rem 1.5rem;
}

.header-content {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
}

.header-badge {
  font-size: 0.875rem;
  background-color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.flag-obtained {
  color: #34d399;
  display: flex;
  align-items: center;
}

/* 主要内容区 */
.main-content {
  flex-grow: 1;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
}

.level-info {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.level-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.level-description {
  margin-bottom: 1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  font-size: 0.875rem;
  background-color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* 评论系统 */
.comments-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* 评论表单 */
.comment-form-container {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-textarea {
  min-height: 6rem;
}

.submit-button {
  width: 100%;
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.submit-button:hover {
  background-color: #2563eb;
}

/* 评论列表和反馈 */
.comments-list-container {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.comments-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.feedback-container {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.25rem;
}

.feedback-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feedback-warning {
  background-color: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.feedback-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.feedback-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feedback-text {
  flex: 1;
}

.feedback-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.feedback-message {
  font-size: 0.875rem;
}

.feedback-flag {
  margin-top: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: #111827;
  padding: 0.5rem;
  border-radius: 0.25rem;
  color: #34d399;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 31.25rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.comment-item {
  background-color: #111827;
  padding: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #374151;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #60a5fa;
}

.comment-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.comment-content {
  color: #d1d5db;
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

/* 攻击路径指南 */
.attack-guide {
  margin-top: 2rem;
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.guide-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-section {
  background-color: #111827;
  padding: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #374151;
}

.guide-section-title {
  font-weight: 500;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

.guide-step {
  font-size: 0.875rem;
}

.guide-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: #1f2937;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.guide-tip {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* 页脚 */
.xss-web1-footer {
  background-color: #1f2937;
  border-top: 1px solid #374151;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  border: 1px solid #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #60a5fa;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.modal-close:hover {
  color: #f3f4f6;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-button {
  float: right;
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.modal-button:hover {
  background-color: #2563eb;
}

/* 滚动条样式 */
.comments-list::-webkit-scrollbar,
.execution-info-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.comments-list::-webkit-scrollbar-track,
.execution-info-content::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb,
.execution-info-content::-webkit-scrollbar-thumb {
  background-color: #4b5563;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover,
.execution-info-content::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

/* 代码样式 */
.guide-code {
  font-family: 'Courier New', Courier, monospace;
}